import 'package:business_user/pages/personal/personal_page.dart';
import 'package:business_user/pages/register/register_page.dart';
import 'package:business_user/pages/setting/setting_page.dart';
import 'package:business_user/routes/user_routes.dart';
import 'package:flutter/cupertino.dart';
import 'package:lib_core/lib_core.dart';
import '../pages/login/login_page.dart';

class UserPages {
  UserPages._();

  static final Map<String, FlutterBoostRouteFactory> userPages = {
    UserRoutes.login: ((setting, uniqueId) => CupertinoPageRoute(
        settings: setting,
        builder: (_) {
          return LoginPage();
        })),
    UserRoutes.register: ((setting, uniqueId) => CupertinoPageRoute(
        settings: setting,
        builder: (_) {
          return RegisterPage();
        })),
    UserRoutes.personal: ((setting, uniqueId) => CupertinoPageRoute(
        settings: setting,
        builder: (_) {
          return const PersonalPage();
        })),
    UserRoutes.setting: ((setting, uniqueId) => CupertinoPageRoute(
        settings: setting,
        builder: (_) {
          return const SettingPage();
        })),
  };
}
